package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Url;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface UrlService {

	public Url saveUrl(Url url);

	public Set<Url> loadUrls();

	public Set<Url> loadReferenceUrls(Set<Url> urls);

	public Set<Url> loadUrlsByIdSet(Set<Integer> urlsId);

	public Map<String, ?> loadUrlObjectReferencedSet(Url url);

	public Map<String, ?> loadUrlClassReferencedSet(Url url);

	public void deleteUrl(Url url);

	public void deleteUrls(Set<Integer> deleteUrlsId);

	public List<Url> findAllUrls(Integer startResult, Integer maxRows);

	public Url findUrlByPrimaryKey(Integer id);

	public Integer countUrls();

	public Integer countUrls(CmiPagination page);

	public Integer countUrlsByName(String queryName);

	public Integer countUrlsByDetachedCriteria(CmiPagination page);

}
